<?php
class Logout extends Controller
{
    public function __construct() {
        parent::__construct();
        $this->model('user');
    }
    
    public function __destruct() {
        parent::__destruct();
    }
    
    public function index()
    {
        if(isset($this->_session['user']))
        {
            User::logout();
        }
    }
}
?>
